package com.xyoto.takeawayBusiness.entity;

import com.xyoto.takeawayBusiness.constant.CategoryStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * category
 *
 * @author
 */
@Data
@ApiModel("Category")
public class Category extends Base {

    @ApiModelProperty("分类名称")
    private String title;

    @ApiModelProperty("类别状态（1:启用，2:未启用）")
    private Short status;

    @ApiModelProperty("顺序")
    private Short order;

    public Category(){
        this.status = CategoryStatus.OPEN;
    }

}